<template>
  <div>
    <h1>hellworld</h1>
    <div><slot name="tag"></slot></div>

    <slot name="footer" :slotdata="slotData" :index="10"></slot>
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
  props: {
    msg: String,
  },
  data() {
    return {
      slotData: "来自子组件的数据 想在父组件的插槽里使用",
    };
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
